<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="">
        </div>
    </div>
    {if $admin['affiliated_center_id'] == 0}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><a style="color: red">*</a>所屬中心:</label>
        <div class="row">
            <div class="col-xs-9" id="region_address">
               
                <div class="form-inline" data-toggle="cxselect" data-selects="area_one_id">
                    <select class="area_one_id form-control" name="row[area_one_id]" data-url="affiliated_center/Area"></select>
                    
                </div>
            </div>
        </div>
    </div>
    {/if}

    {if $admin['affiliated_center_id'] != 0}
   
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><a style="color: red">*</a>所屬中心:</label>
        <div class="row">
            <div class="col-xs-9" id="region_address">
                <!-- <div class="form-inline" data-toggle="cxselect" data-selects="province,city">
                    <select  data-rule="required" class="province form-control" name="row[area_one_id]" data-url="area/area">
                    </select>
                    <select  data-rule="required" class="city form-control" name="row[area_tow_id]" data-url="area/area">
                    </select>
                </div> -->
                <div class="form-inline" >
                    <select class="area_one_id form-control" name="row[area_one_id]" >
                        <?php
                        $ids = explode(',',$admin['affiliated_center_id']);
                        $strs = explode(',',$admin['affiliated_center_text']);
                        foreach($ids as $k=> $v){

                        
                        ?>
                        <option value="{$v}">{$strs[$k]}</option>
                        <?php
                        }
                        ?>
                    </select>
                    
                    
                </div>
            </div>
        </div>
    </div>
    {/if}
    
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control editor" rows="5" name="row[content]" cols="50"></textarea>
        </div>
    </div> -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
